<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{inChoosingAverageBulletinList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="均价选取报价情况"></f:viewParam>
	   	<f:viewParam name="orderBy" value="#{inChoosingAverageBulletinList.orderBy}"></f:viewParam>	
	   	<f:viewParam name="dir" value="#{inChoosingAverageBulletinList.dir}"></f:viewParam>
   	</f:metadata>
   	
    <ui:define name="head">
   	 	<h:outputStylesheet name="/primeicons/primeicons.css" />
    </ui:define>
   
   	<ui:define name="content">
   	   
		<h:form id="searchForm">			
			<p:panel id="searchResult">
				<f:facet name="header">选取中均价选取公告列表</f:facet>
				<p:dataTable value="#{inChoosingAverageBulletinList.resultList}" var="_bulletin">
					
					<p:column  >
						<f:facet name="header">
							<ui:include src="/manage/template/include/sort.xhtml">
								<ui:param name="entityList" value="#{inChoosingAverageBulletinList}"/>
			                    <ui:param name="propertyLabel" value="项目名称"/>
			                    <ui:param name="propertyPath" value="projectName"/>
							</ui:include>
						</f:facet>
						#{_bulletin.projectName}
					</p:column>
					
					<p:column >
						<f:facet name="header">
							采购方名称
						</f:facet>
						#{_bulletin.buyer.cnname}
					</p:column>
					<p:column >
						<f:facet name="header">中介名称</f:facet>
						#{_bulletin.successTrade.supplier.cnname}
					</p:column>
					<p:column >
						<f:facet name="header">									
							<ui:include src="/manage/template/include/sort.xhtml">
								<ui:param name="entityList" value="#{inChoosingAverageBulletinList}"/>
			                    <ui:param name="propertyLabel" value="申请结算时间"/>
			                    <ui:param name="propertyPath" value="applyDoneTime"/>
							</ui:include>				
						</f:facet>
						<h:outputText value="#{_bulletin.applyDoneTime}" >
							<f:convertDateTime pattern="yyyy/MM/dd HH:mm:ss"/>
						</h:outputText>
					</p:column>
					<p:column >
						<f:facet name="header">操作</f:facet>
						<p:button outcome="averageBulletinBidMonitor.xhtml" value="查看实时报价" target="_blank">
							<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{inChoosingAverageBulletinList}" />
			</ui:include>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
